#!/bin/env python
#-*- coding:utf-8 -*-

import os
import sys
import random

def valid_check(fir, oper1, two):
    res = 0
    if (oper1 == '-'):
        if fir <= two:
          oper1 = '+'
	  res = fir + two
	else:
          res = fir - two
    else:
        res = fir + two
    return fir, oper1, two, res


def generate_gade_two_math():
    fir = random.randint(1, 100)
    two = random.randint(1, 100)
    thr = random.randint(1, 100)
    oper1 = random.choice("+-")
    oper2 = random.choice("+-")
    #print fir, oper1, two, oper2, thr
    a,b,c,d = valid_check(fir, oper1, two)
    #print a,b,c,d
    e,f,g,h = valid_check(d, oper2, thr)
    #print e,f,g,h
    print "{}{}{}{}{}=".format(a,b,c,f,g),


def paiban():
    line = 30
    col = 4
    for i in range(line):
      for j in range(col):
        generate_gade_two_math()
	if j != (col -1):
	  print "\t\t",
      print ""

if __name__ == "__main__":
    #generate_gade_two_math()
    paiban()
